package com.coderknock.spring.boot.mybatis.model;

import lombok.Data;

import java.util.Date;

@Data
public class Article {

    private Integer id;

    private Integer author;

    private Boolean permission;

    private String contextPath;

    private String url;

    private Boolean status;

    private String intro;

    private Date modifyTime;

    private Date createTime;

    private String titleText;

    private Integer pv;

    private Integer dislikeNum;

    private Integer likeNum;

    private String articleType;

    public Article(Integer id, Integer author, Boolean permission, String contextPath, String url, Boolean status, String intro, Date modifyTime, Date createTime, String titleText, Integer pv, Integer dislikeNum, Integer likeNum, String articleType) {
        this.id = id;
        this.author = author;
        this.permission = permission;
        this.contextPath = contextPath;
        this.url = url;
        this.status = status;
        this.intro = intro;
        this.modifyTime = modifyTime;
        this.createTime = createTime;
        this.titleText = titleText;
        this.pv = pv;
        this.dislikeNum = dislikeNum;
        this.likeNum = likeNum;
        this.articleType = articleType;
    }
}